package me.huangxiang.data_structure_and_algorithm.sort;

import me.huangxiang.data_structure_and_algorithm.common.IntegerArrayLoader;

import java.io.IOException;

public class SortApp {
    private static final int MAX_LENGTH = 100;
    public static void main(String[] args) throws IOException {
        int[] A = IntegerArrayLoader.loadInteger();
        QuickSort.quickSortV1(A, 0, MAX_LENGTH - 1);
        Util.print(A);

        int[] B = IntegerArrayLoader.loadInteger();
        BubbleSort.bubbleSort(B);
        Util.print(B);

        int[] C = IntegerArrayLoader.loadInteger();
        SelectionSort.insertionSort(C);
        Util.print(C);

        int[] D = IntegerArrayLoader.loadInteger();
        InsertionSort.insertionSort(D);
        Util.print(D);
    }
}
